#include "task.h"
#include "user_include.h"

uint32_t task0Cnt = 0;

void task0(void)
{
    while (1)
    {
        if (TEST_BIT(taskRunFlag,TASK_0))
        {
            CLR_BIT(taskRunFlag,TASK_0);
            P46 = !P46;

            task0Cnt++;

            xos_get_tick();


            taskNext();

            P46 = !P46;
        }
    }
}